package com.woniuxy.micropurchaseserver.suppliermsg.service;

import com.woniuxy.micropurchaseserver.bean.SupplierBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierService {
    /**
     * 查询所有供应商
     * @return
     */
    public List<SupplierBean> findAllSupplier(SupplierBean supplierBean);

    /**
     * 根据id删除供应商
     * @param id
     * @return
     */
    public Integer deleteSupplierById(Integer id);

    /**
     * 修改供应商信息
     * @param supplierBean
     * @return
     */
    public Integer UpdateSupplier(SupplierBean supplierBean);

    /**
     * 增加供应商信息
     * @param supplierBean
     * @return
     */
    public Long InsertSupplier(@Param("p")SupplierBean supplierBean);
}
